package com.heima.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.article.dto.ArticleHomeDto;
import com.heima.model.article.pojo.ApArticle;
import org.apache.commons.net.nntp.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * @author Ronaldo
 * @date 2021/8/13
 */
@Mapper
public interface ApArticleMapper extends BaseMapper<ApArticle> {

    /**
     * 查询文章列表
     * @param articleHomeDto 查询参数
     * @param loadType 1--加载更多  2--加载更新
     * @return ResponseResult
     */
    List<Article> selectArticleList(@Param("articleHomeDto") ArticleHomeDto articleHomeDto, @Param("loadType") Short loadType);
}